package com.zc.angelica.enums;

public enum ResponseEnum {

    SUCCESS(200, "请求成功"),
    FAIL(500, "请求失败"),
    OVERTIME(400, "请求超时"),
    ;

    private final Integer code;

    private final String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    // 省略枚举构造方法、get、set方法
}
